class WeekRecordEntity {
  final int? humanId;
  List<WeekInfo>? records;

  WeekRecordEntity({this.records, this.humanId});

  factory WeekRecordEntity.fromJson(Map<String, dynamic> json) {
    final originList = json['records'] as List?;
    List<WeekInfo> protocolList =
        (originList??[]).map((value) => WeekInfo.fromJson(value)).toList();
    return WeekRecordEntity(records: protocolList, humanId: json['humanId']);
  }
}

class WeekInfo {
  String? date;
  String? dateSymbol;
  String? week;
  String? schedulingTypeSymbol;

  WeekInfo({
    this.date,
    this.dateSymbol,
    this.week,
    this.schedulingTypeSymbol
  });

  WeekInfo.fromJson(Map data) {
    date = data['date'];
    dateSymbol = data['dateSymbol'];
    week = data['week'];
    schedulingTypeSymbol = data['schedulingTypeSymbol'];
  }
}
